home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / libg_261.zip / libg_261 / libg++ / etc / graph / ePlotFile.h < prev    next >
C/C++ Source or Header  |  1993-05-04  |  1KB  |  41 lines

  1.  
  2. #ifndef ePlotFile_h
  3. #pragma interface
  4. #define ePlotFile_h 1
  5.  
  6. #include <PlotFile.h>
  7.  
  8. // ePlotFile is an extended plot file class which has adjusted labels.
  9.  
  10. // put the left center or right edge of the text at the current point.
  11. typedef enum alabel_xadj
  12. { LEFT_JUSTIFY = 'l', CENTER_JUSTIFY = 'c', RIGHT_JUSTIFY = 'r'};
  13.  
  14. // put the top center or bottom edge of the text at the current point.
  15. typedef enum alabel_yadj
  16. { BOTTOM_FLUSH = 'b', CENTER_FLUSH = 'c', TOP_FLUSH = 't' };
  17.  
  18. class ePlotFile : public PlotFile
  19. {
  20. public:
  21.             ePlotFile() : PlotFile() {}
  22. #ifndef _OLD_STREAMS
  23.         ePlotFile(int fd) : PlotFile(fd) { }
  24.         ePlotFile(const char *name, int mode=ios::out, int prot=0664)
  25.         : PlotFile(name, mode, prot) { }
  26. #else
  27.             ePlotFile(const char* filename, io_mode m, access_mode a)
  28.               :PlotFile(filename, m, a) {}
  29.             ePlotFile(const char* filename, const char* m)
  30.               :PlotFile(filename, m) {}
  31.             ePlotFile(int filedesc, io_mode m = io_writeonly)
  32.               :PlotFile(filedesc, m) {}
  33.             ePlotFile(FILE* fileptr) : PlotFile(fileptr) {}
  34. #endif
  35.  
  36.   ePlotFile& alabel (alabel_xadj x_adjust,
  37.              alabel_yadj y_adjust, const char *s);
  38. };
  39.  
  40. #endif
  41.